package patrol.mobile.com.mobilepatrol.activity.security.emergency;



import android.view.LayoutInflater;
import android.view.View;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.listener.OnRecyclerViewItemClickListener;

import java.util.ArrayList;
import java.util.List;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.activity.CommonListActivity;
import patrol.mobile.com.mobilepatrol.activity.CommonListWithSearchActivity;
import patrol.mobile.com.mobilepatrol.activity.security.ConsTitles;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencyPackageLeaderSeeAdapter;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencyProtectCollectionAdapter;

public class EmergencyPackageLeaderSeeActivity extends CommonListActivity {

    @Override
    protected BaseQuickAdapter initAdapter() {
        return new EmergencyPackageLeaderSeeAdapter(this);
    }

    @Override
    public void initView() {
        super.initView();
        View itemView = LayoutInflater.from(this).inflate(R.layout.activity_emergency_package_leader_see_top, null);
        flContent.addView(itemView);
    }

    @Override
    protected String initTitleName() {
        return ConsTitles.EMERGENCY_PACKAGE_LEADER_SEE_1;
    }

    @Override
    public void initTitle() {
        super.initTitle();
    }

    @Override
    public void setListener() {
        super.setListener();

    }

    @Override
    public void configAdapter() {
        super.configAdapter();

        mAdapter.setOnItemClickListener(new OnRecyclerViewItemClickListener() {
            @Override
            public void onItemClick(View view, int position) {
                //startActivity(EmergencyProtectCheckActivity.class);
            }
        });
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            list.add("123");
        }
        mAdapter.updateItems(list);

    }

}
